package com.hgxd.entity.pojo;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 系统用户Token
 * </p>
 *
 * @author fsd
 * @since 2023-10-19
 */
@Getter
@Setter
@TableName("sys_user_token")
@ApiModel(value = "UserToken对象", description = "系统用户Token")
public class UserToken implements Serializable {

    private static final long serialVersionUID = 1L;

      private Long userId;

    @ApiModelProperty("token")
    private String token;

    @ApiModelProperty("过期时间")
    @JsonFormat(shape=JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime expireTime;

    @ApiModelProperty("更新时间")
    @JsonFormat(shape=JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;


}
